import http from "@/utils/http";
//获取表格数据列表
export const getList = (params) => {
  return http.get("/project/ysbzsz/list", params);
};
//新增
export const addRecords = (params) => {
  return http.post(`/project/ysbzsz`, params);
};
//编辑
export const editRecords = (params) => {
  return http.put(`/project/ysbzsz`, params);
};
//删除
export const delRecords = (id) => {
  return http.del(`/project/ysbzsz/${id}`);
};
//详情
export const recordsDetail = (id) => {
  return http.get(`/project/ysbzsz/${id}`);
};

//获取最大科目前缀
export const getPrefix = (params) => {
  return http.get("/project/ysbzsz/getMaxPrefix", params);
};
